/*
 * BombView.h
 *
 *  Created on: 25/05/2014
 *      Author: javier
 */

#ifndef BOMBVIEW_H_
#define BOMBVIEW_H_

#include "Drawable.h"
#include "Positionable.h"
#include "Utils.h"
#include "Properties.h"
/*
 * Vista animada de una bomba, con posicion variable se gun su posicionable
 * Esto ultimo se puede observar en las bombas arrojadas por plantas
 */
class BombView: public Drawable {
public:
	BombView(SDLWindow* window, SDL_Texture* texture, Positionable* object);
	void render(Camera& cam);
	void update();
	virtual ~BombView();
private:
	SDL_Rect clips[3];
	int useClip;
	SDLWindow* window;
	SDL_Texture* texture;
	int base;
	std::pair<double, double> geometry;
	Positionable* object;
	Cycler cycler;
	std::pair<double, double> position, previousPosition;
	Properties properties;
};

#endif /* BOMBVIEW_H_ */
